<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <!-- 1/1+1/3 -->
    <!-- 1/1-1/2 -->
</body>
<script>
    var ou = 0
    var ji = 0
    for (i = 2; i < 101; i++) {
        if (i % 2 === 0) {
            ou = ou +(- 1 / i)
        } else if (i % 2 !== 0) {
            ji = ji + 1 / i
        }
    }
    var count = ou + ji+ 1
    console.log(count)
</script>

</html>